Syntax Highlighting for JS-flavored CocoaScript. CocoaScript is used for Sketch plugins, and provides access to JavaScript and Cocoa resources.
Works with any IDE that supports ESLint integration, like Atom and others.
More info at : https://www.npmjs.com/package/eslint-plugin-cocoascript
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-cocoascript
:
$ npm install eslint-plugin-cocoascript --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-cocoascript
globally.
Add cocoascript
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"cocoascript"
]
}
MIT © Andrew Holloway