Skip to content

Commit

Permalink
Upgrade ESLint to latest (#371)
Browse files Browse the repository at this point in the history
* Upgrade to ESLint 9

* Add ESLint config

* Back out change to Storybook

* Back out changes to TreeView example

* Revert some tsconfig.json changes

* Revert some tsconfig.json changes

* Fully revert TreeView examples changes

* Reenable import/no-unresolved

* Reenable import/extensions
  • Loading branch information
willeastcott authored Nov 8, 2024
1 parent 712a115 commit e6c6f89
Show file tree
Hide file tree
Showing 95 changed files with 1,270 additions and 856 deletions.
41 changes: 41 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import playcanvasConfig from '@playcanvas/eslint-config';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import globals from 'globals';

export default [
...playcanvasConfig,
{
files: ['src/**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: true
},
globals: {
...globals.browser,
...globals.mocha,
...globals.node
}
},
plugins: {
'@typescript-eslint': tsPlugin
},
settings: {
'import/resolver': {
typescript: {}
}
},
rules: {
...tsPlugin.configs['recommended'].rules,
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-returns-type': 'off'
}
}
];
Loading

0 comments on commit e6c6f89

Please sign in to comment.