mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
40 lines
874 B
JavaScript
40 lines
874 B
JavaScript
module.exports = {
|
|
parser: '@babel/eslint-parser',
|
|
extends: ['eslint:recommended', 'preact', 'prettier'],
|
|
plugins: ['react', 'jest'],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
mocha: true,
|
|
es6: true,
|
|
'jest/globals': true,
|
|
},
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
modules: true,
|
|
jsx: true,
|
|
},
|
|
},
|
|
settings: {
|
|
react: {
|
|
pragma: 'h',
|
|
},
|
|
},
|
|
globals: {
|
|
sleep: true,
|
|
},
|
|
rules: {
|
|
indent: ['error', 2, { SwitchCase: 1 }],
|
|
'comma-dangle': ['error', { objects: 'always-multiline', arrays: 'always-multiline' }],
|
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
},
|
|
],
|
|
};
|