eslint-config-creative-area v0.11.1
ESLint Configuration for Creative-Area's Projects
Usage
package.json
First, add the following properties to the devDependencies object:
"eslint": "<eslint-version>",
"eslint-config-creative-area": "<config-version>",where <eslint-version> and <config-version> are typically the latest (7.13.0 and 0.11.0 respectively as of this writing).
Don't forget to npm install!
Then, create an object named eslintConfig as follows:
"eslintConfig": {
"extends": "creative-area/<ecma-version>",
"env": {
"node": true
}
},where <ecma-version> is the desired language version (typically es<current-year> unless you work with an older version of nodejs) followed by a slash (/) and the source type if above es6 (module or script).
.eslintrc
You can also create a .eslintrc file in a sub-folder that contains code for another environment. For instance, if you have some commonjs-formatted code that is supposed to run in es5-compatible browsers, you'd create a json-formatted .eslintrc file with the following content:
{
"extends": "creative-area/es5",
"env": {
"browser": true,
"commonjs": true
}
}Available Configurations
creative-area/es3creative-area/es5creative-area/es6/modulesame ascreative-area/es2015/modulecreative-area/es6/scriptsame ascreative-area/es2015/scriptcreative-area/es7/modulesame ascreative-area/es2016/modulecreative-area/es7/scriptsame ascreative-area/es2016/scriptcreative-area/es8/modulesame ascreative-area/es2017/modulecreative-area/es8/scriptsame ascreative-area/es2017/scriptcreative-area/es9/modulesame ascreative-area/es2018/modulecreative-area/es9/scriptsame ascreative-area/es2018/scriptcreative-area/es10/modulesame ascreative-area/es2019/modulecreative-area/es10/scriptsame ascreative-area/es2019/scriptcreative-area/es11/modulesame ascreative-area/es2020/modulecreative-area/es11/scriptsame ascreative-area/es2020/scriptcreative-area/es12/modulesame ascreative-area/es2021/modulecreative-area/es12/scriptsame ascreative-area/es2021/script
License
These ESLint configurations and the code used to generate them are distributed under the MIT license.