Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/configs/flat/browser.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const globals = require('globals')
const github = require('../../plugin')
const importPlugin = require('eslint-plugin-import')
const escompatPlugin = require('eslint-plugin-escompat')
const escompat = require('eslint-plugin-escompat')
const {fixupPluginRules} = require('@eslint/compat')

module.exports = {
...escompatPlugin.configs['flat/recommended'],
...escompat.configs['flat/recommended'],
languageOptions: {
globals: {
...globals.browser,
},
},
plugins: {importPlugin, escompatPlugin, github: fixupPluginRules(github)},
plugins: {importPlugin, escompat, github: fixupPluginRules(github)},
rules: {
'escompatPlugin/no-dynamic-imports': 'off',
'escompat/no-dynamic-imports': 'off',
'github/async-currenttarget': 'error',
'github/async-preventdefault': 'error',
'github/get-attribute': 'error',
Expand Down
6 changes: 3 additions & 3 deletions lib/configs/flat/typescript.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const eslint = require('@eslint/js')
const tseslint = require('typescript-eslint')
const escompatPlugin = require('eslint-plugin-escompat')
const escompat = require('eslint-plugin-escompat')
const github = require('../../plugin')
const {fixupPluginRules} = require('@eslint/compat')

module.exports = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, {
module.exports = tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, ...escompat.configs['flat/typescript-2020'], {

Check failure on line 7 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Replace `eslint.configs.recommended,·...tseslint.configs.recommended,·...escompat.configs['flat/typescript-2020'],` with `⏎··eslint.configs.recommended,⏎··...tseslint.configs.recommended,⏎··...escompat.configs['flat/typescript-2020'],⏎·`

Check failure on line 7 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Replace `eslint.configs.recommended,·...tseslint.configs.recommended,·...escompat.configs['flat/typescript-2020'],` with `⏎··eslint.configs.recommended,⏎··...tseslint.configs.recommended,⏎··...escompat.configs['flat/typescript-2020'],⏎·`

Check failure on line 7 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Replace `eslint.configs.recommended,·...tseslint.configs.recommended,·...escompat.configs['flat/typescript-2020'],` with `⏎··eslint.configs.recommended,⏎··...tseslint.configs.recommended,⏎··...escompat.configs['flat/typescript-2020'],⏎·`

Check failure on line 7 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Replace `eslint.configs.recommended,·...tseslint.configs.recommended,·...escompat.configs['flat/typescript-2020'],` with `⏎··eslint.configs.recommended,⏎··...tseslint.configs.recommended,⏎··...escompat.configs['flat/typescript-2020'],⏎·`
languageOptions: {

Check failure on line 8 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 8 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 8 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 8 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
parser: tseslint.parser,

Check failure on line 9 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 9 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 9 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 9 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
},

Check failure on line 10 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Replace `··` with `····`

Check failure on line 10 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Replace `··` with `····`

Check failure on line 10 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Replace `··` with `····`

Check failure on line 10 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Replace `··` with `····`
plugins: {'@typescript-eslint': tseslint.plugin, escompatPlugin, github: fixupPluginRules(github)},
plugins: {'@typescript-eslint': tseslint.plugin, escompat, github: fixupPluginRules(github)},

Check failure on line 11 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 11 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 11 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 11 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
rules: {

Check failure on line 12 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 12 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 12 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 12 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
camelcase: 'off',

Check failure on line 13 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 13 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 13 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 13 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
'no-unused-vars': 'off',

Check failure on line 14 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 14 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 14 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 14 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
'no-shadow': 'off',

Check failure on line 15 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 15 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 15 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 15 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
'no-invalid-this': 'off',

Check failure on line 16 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 16 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`

Check failure on line 16 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (22)

Insert `··`

Check failure on line 16 in lib/configs/flat/typescript.js

View workflow job for this annotation

GitHub Actions / build (20)

Insert `··`
'@typescript-eslint/no-invalid-this': ['error'],
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/interface-name-prefix': 'off',
Expand Down
Loading