This package was deprecated. Please use @mysticatea/eslint-plugin instead.
Shareable configurations of ESLint.
There is basic configuration at base.js.
npm install --save-dev eslint eslint-config-mysticatea
- Node.js
^4.0.0
,^6.0.0
,^8.0.0
, or newer. - ESLint
^4.14.0
, or newer.
Write in your ESLint configurations: http://eslint.org/docs/user-guide/configuring#using-the-configuration-from-a-plugin
First, please choose a base template.
mysticatea
- A rule set for ECMAScript 2017.mysticatea/es5
- A rule set for ECMAScript 5.
Second, please choose a optional template and add it.
mysticatea/browser
- An additional setting for browser environment.mysticatea/mocha
- An additional setting for mocha environment.mysticatea/modules
- An additional setting for ES Modules enviroment.mysticatea/node
- An additional setting for Node.js environment.mysticatea/vue
- An additional setting for Vue.js environment. This setting includesmysticatea/browser
andmysticatea/modules
.
Then, please write those into extends
field.
-
Node.js with ES5
{ "extends": ["mysticatea/es5", "mysticatea/node"] }
-
Node.js with ES2015
{ "extends": ["mysticatea", "mysticatea/node"] }
In this case,
engines
field ofpackage.json
is needed to specify the version of Node. -
Node.js with ES2015 & Modules
{ "extends": ["mysticatea", "mysticatea/modules", "mysticatea/node"] }
In this case,
engines
field ofpackage.json
is needed to specify the version of Node. Or just turnnode/no-unsupported-features
off. -
Browser with ES2015
{ "extends": ["mysticatea", "mysticatea/browser"] }