eslint config update
This commit is contained in:
@@ -3,12 +3,7 @@ import pluginJs from '@eslint/js';
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'env': {
|
// in globals block
|
||||||
'browser': true,
|
|
||||||
'es6': true,
|
|
||||||
'commonjs': true,
|
|
||||||
'jquery': true
|
|
||||||
},
|
|
||||||
'extends': 'eslint:recommended',
|
'extends': 'eslint:recommended',
|
||||||
'parserOptions': {
|
'parserOptions': {
|
||||||
'ecmaVersion': 6
|
'ecmaVersion': 6
|
||||||
@@ -19,7 +14,12 @@ module.exports = {
|
|||||||
|
|
||||||
/** @type {import('eslint').Linter.Config[]} */
|
/** @type {import('eslint').Linter.Config[]} */
|
||||||
export default [
|
export default [
|
||||||
{languageOptions: { globals: globals.browser }},
|
{languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
...globals.jquery
|
||||||
|
}
|
||||||
|
}},
|
||||||
pluginJs.configs.recommended,
|
pluginJs.configs.recommended,
|
||||||
{
|
{
|
||||||
'rules': {
|
'rules': {
|
||||||
|
|||||||
Reference in New Issue
Block a user