forked from brunob/leaflet.fullscreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
33 lines (31 loc) · 889 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const globals = require('globals');
const eslintPluginEslint = require('@eslint/js');
const eslintPluginStylistic = require('@stylistic/eslint-plugin');
const config = [
{
files: ['**/*.js'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
define: 'readonly',
L: 'writable'
}
},
plugins: {
...eslintPluginStylistic.configs['recommended-flat'].plugins
},
rules: {
...eslintPluginEslint.configs['recommended'].rules,
...eslintPluginStylistic.configs['recommended-flat'].rules,
'@stylistic/brace-style': ['error', '1tbs'],
'@stylistic/comma-dangle': ['error', 'only-multiline'],
'@stylistic/indent': ['error', 'tab'],
'@stylistic/no-tabs': 'off',
'@stylistic/semi': ['error', 'always'],
'no-lonely-if': 'error',
'no-unused-expressions': ['error', { allowTernary: true }]
}
}
];
module.exports = config;