-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency glob to v11 (#399)
* Update dependency glob to v11 * build * Upgrade eslint * remove old eslint config * eslint fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com>
- Loading branch information
1 parent
2fd6c61
commit 6c5288b
Showing
86 changed files
with
917 additions
and
842 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import globals from "globals"; | ||
import babelParser from "@babel/eslint-parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [...compat.extends("eslint:recommended"), { | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
Atomics: "readonly", | ||
SharedArrayBuffer: "readonly", | ||
module: true, | ||
require: true, | ||
process: true, | ||
__dirname: true, | ||
describe: true, | ||
it: true, | ||
globalThis: true, | ||
beforeEach: true, | ||
app: true, | ||
Tablesort: true, | ||
}, | ||
|
||
parser: babelParser, | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
|
||
parserOptions: { | ||
requireConfigFile: false, | ||
}, | ||
}, | ||
|
||
rules: { | ||
indent: "off", | ||
}, | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.