1 | module.exports = {
|
2 |
|
3 | // http://eslint.org/docs/user-guide/configuring#specifying-parser
|
4 | parser: 'babel-eslint',
|
5 |
|
6 | // http://eslint.org/docs/user-guide/configuring#specifying-parser-options
|
7 | /* parserOptions: {
|
8 | ecmaVersion: 2017,
|
9 | ecmaFeatures: {
|
10 | experimentalObjectRestSpread: true,
|
11 | globalReturn: false,
|
12 | impliedStrict: true,
|
13 | },
|
14 | sourceType: 'module',
|
15 | }, */
|
16 |
|
17 | // http://eslint.org/docs/user-guide/configuring#specifying-environments
|
18 | env: {
|
19 | browser: true,
|
20 | node: true,
|
21 | es6: true,
|
22 | },
|
23 |
|
24 | // http://eslint.org/docs/user-guide/configuring#configuring-plugins
|
25 | plugins: [
|
26 | 'jsdoc',
|
27 | 'node',
|
28 | 'import',
|
29 | ],
|
30 |
|
31 | // http://eslint.org/docs/user-guide/configuring#extending-configuration-files
|
32 | extends: [
|
33 | 'eslint-config-standard',
|
34 | './rules/ecma',
|
35 | './rules/jsdoc',
|
36 | ].map(require.resolve),
|
37 | };
|