browser-extension/.eslintrc.js

25 lines
537 B
JavaScript
Raw Permalink Normal View History

2022-12-03 02:48:53 +00:00
'use strict';
module.exports = {
extends: ['eslint:recommended', 'eslint-config-prettier'],
parserOptions: {
ecmaVersion: 2020,
},
env: {
browser: true,
2023-11-03 16:03:06 +00:00
es6: true,
2022-12-03 02:48:53 +00:00
},
2022-12-03 02:57:04 +00:00
globals: {
browser: 'readonly',
chrome: 'readonly',
},
2022-12-03 02:48:53 +00:00
rules: {
strict: ['error', 'global'],
'no-unused-vars': ['error', { vars: 'local' }],
eqeqeq: ['error', 'always', { null: 'ignore' }],
curly: ['error', 'multi-line'],
'no-var': 'error',
'no-func-assign': 'off',
'no-inner-declarations': 'off',
2022-12-03 02:48:53 +00:00
},
};