mirror of
https://github.com/jwetzell/free-d-js.git
synced 2026-07-26 10:28:44 +00:00
switch eslint to new style
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
env: {
|
|
||||||
node: true,
|
|
||||||
commonjs: true,
|
|
||||||
es2021: true,
|
|
||||||
},
|
|
||||||
extends: ['airbnb', 'prettier'],
|
|
||||||
parserOptions: {
|
|
||||||
ecmaVersion: 'latest',
|
|
||||||
},
|
|
||||||
ignorePatterns: ['**/node_modules', '**/dist'],
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import globals from 'globals';
|
||||||
|
import pluginJs from '@eslint/js';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
||||||
|
|
||||||
|
/** @type {import('eslint').Linter.Config[]} */
|
||||||
|
export default [
|
||||||
|
{ files: ['packages/**/*.ts']},
|
||||||
|
{ ignores: ['**/*.test.js','eslint.config.mjs', '**/dist'] },
|
||||||
|
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
||||||
|
pluginJs.configs.recommended,
|
||||||
|
...tseslint.configs.recommended,
|
||||||
|
eslintPluginPrettier,
|
||||||
|
];
|
||||||
Generated
+510
-2144
File diff suppressed because it is too large
Load Diff
+6
-3
@@ -20,9 +20,12 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@eslint/js": "9.18.0",
|
||||||
|
"eslint": "8.57.1",
|
||||||
|
"eslint-config-prettier": "10.0.1",
|
||||||
|
"eslint-plugin-prettier": "5.2.3",
|
||||||
|
"globals": "15.14.0",
|
||||||
"prettier": "3.4.2",
|
"prettier": "3.4.2",
|
||||||
"eslint": "8.48.0",
|
"typescript-eslint": "8.20.0"
|
||||||
"eslint-config-airbnb": "19.0.4",
|
|
||||||
"eslint-config-prettier": "9.1.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user