1 | module.exports =
|
2 | {
|
3 | extends: [ 'eslint:recommended', 'prettier' ],
|
4 | plugins: ['prettier' ], // activating esling-plugin-prettier (--fix stuff)
|
5 | env: {
|
6 | browser: true,
|
7 | node: true,
|
8 | es6: true
|
9 | },
|
10 | rules: {
|
11 | 'prettier/prettier': [
|
12 | // customizing prettier rules (unfortunately not many of them are customizable)
|
13 | 'error',
|
14 | {
|
15 | singleQuote: true,
|
16 | semi: false
|
17 | }
|
18 | ],
|
19 | 'semi': ['error', 'never' ],
|
20 | 'no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
|
21 | 'no-inner-declarations': 'off'
|
22 | }
|
23 | }
|