diff options
| author | Daniel Micay <daniel.micay@grapheneos.org> | 2024-04-08 01:38:56 -0400 |
|---|---|---|
| committer | Daniel Micay <daniel.micay@grapheneos.org> | 2024-04-08 01:48:30 -0400 |
| commit | bd1edbdc0a32f482e7d8aa6a8d84dd5cb0243782 (patch) | |
| tree | 9ebb75ceb55cea0eecb75a6ae8d8f4dd291e926e /eslint.config.js | |
| parent | cb04cd3536468e170e46f821a8c59184a3b4a9d1 (diff) | |
move to new eslint configuration format
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..f99de616 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,22 @@ +import js from "@eslint/js"; +import globals from "globals"; + +export default [ + js.configs.recommended, + { + languageOptions: { + globals: { + ...globals.browser + }, + ecmaVersion: 2022, + sourceType: "module" + }, + rules: { + indent: ["error", 4], + "linebreak-style": ["error", "unix"], + quotes: ["error", "double"], + semi: ["error", "always"], + "no-var": ["error"] + } + } +]; |
