ESLint environment to improve development efficiency of Axway(Appcelerator) Titanium.
-
Run
npm init
to create package.json in your titanium project. -
Install eslint and config.
$ npm install --save-dev eslint-config-airbnb-base eslint-plugin-import eslint@3
-
You can copy .eslintrc and .eslintignore from this repository and put them in the project root.
-
Disabling Block
/* eslint-disable */ alert('foo'); /* eslint-enable */
-
Disabling Line
alert('foo'); // eslint-disable-line
See the eslint documentation for more.
-
(Based on appc-sample-ti520, we made very little convention changes.)