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