1 | module.exports = {
|
2 | env: {
|
3 | browser: true,
|
4 | commonjs: true,
|
5 | es2021: true
|
6 | },
|
7 | extends: [
|
8 | 'standard'
|
9 | ],
|
10 | parserOptions: {
|
11 | ecmaVersion: 12
|
12 | },
|
13 | rules: {
|
14 | 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
15 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
16 | 'no-unused-vars': [
|
17 | 'error', {
|
18 | argsIgnorePattern: '^_'
|
19 | }
|
20 | ]
|
21 | }
|
22 | }
|