mirror of
https://github.com/jwetzell/ddp-js.git
synced 2026-07-26 09:58:41 +00:00
replace eslint with 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','examples/*'] },
|
||||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
eslintPluginPrettier,
|
||||
];
|
||||
Generated
+598
-2466
File diff suppressed because it is too large
Load Diff
+7
-4
@@ -20,9 +20,12 @@
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"eslint": "8.48.0",
|
||||
"eslint-config-airbnb": "19.0.4",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"prettier": "3.4.2"
|
||||
"@eslint/js": "9.18.0",
|
||||
"eslint": "9.18.0",
|
||||
"eslint-config-prettier": "10.0.1",
|
||||
"eslint-plugin-prettier": "5.2.3",
|
||||
"globals": "15.14.0",
|
||||
"prettier": "3.4.2",
|
||||
"typescript-eslint": "8.20.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user