Update eslintrc from GJS
This commit is contained in:
+10
-4
@@ -2,8 +2,7 @@
|
|||||||
# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
|
# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
|
||||||
# SPDX-FileCopyrightText: 2018 Claudio André <claudioandre.br@gmail.com>
|
# SPDX-FileCopyrightText: 2018 Claudio André <claudioandre.br@gmail.com>
|
||||||
env:
|
env:
|
||||||
es6: true
|
es2021: true
|
||||||
es2020: true
|
|
||||||
extends: 'eslint:recommended'
|
extends: 'eslint:recommended'
|
||||||
plugins:
|
plugins:
|
||||||
- jsdoc
|
- jsdoc
|
||||||
@@ -86,7 +85,10 @@ rules:
|
|||||||
linebreak-style:
|
linebreak-style:
|
||||||
- error
|
- error
|
||||||
- unix
|
- unix
|
||||||
lines-between-class-members: error
|
lines-between-class-members:
|
||||||
|
- error
|
||||||
|
- always
|
||||||
|
- exceptAfterSingleLine: true
|
||||||
max-nested-callbacks: error
|
max-nested-callbacks: error
|
||||||
max-statements-per-line: error
|
max-statements-per-line: error
|
||||||
new-parens: error
|
new-parens: error
|
||||||
@@ -260,5 +262,9 @@ globals:
|
|||||||
TextEncoder: readonly
|
TextEncoder: readonly
|
||||||
TextDecoder: readonly
|
TextDecoder: readonly
|
||||||
console: readonly
|
console: readonly
|
||||||
|
setTimeout: readonly
|
||||||
|
setInterval: readonly
|
||||||
|
clearTimeout: readonly
|
||||||
|
clearInterval: readonly
|
||||||
parserOptions:
|
parserOptions:
|
||||||
ecmaVersion: 2020
|
ecmaVersion: 2022
|
||||||
|
|||||||
Reference in New Issue
Block a user