52 lines
1.5 KiB
JavaScript
52 lines
1.5 KiB
JavaScript
import playcanvasConfig from '@playcanvas/eslint-config';
|
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
import globals from 'globals';
|
|
|
|
export default [
|
|
...playcanvasConfig,
|
|
{
|
|
files: ['**/*.ts'],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.serviceworker,
|
|
BlobPart: 'readonly'
|
|
}
|
|
},
|
|
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': 'off',
|
|
'jsdoc/require-param-type': 'off',
|
|
'jsdoc/require-returns': 'off',
|
|
'jsdoc/require-returns-type': 'off',
|
|
'jsdoc/check-tag-names': 'off',
|
|
'lines-between-class-members': 'off',
|
|
'no-await-in-loop': 'off',
|
|
'require-atomic-updates': 'off'
|
|
}
|
|
}, {
|
|
files: ['**/*.mjs'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
},
|
|
rules: {
|
|
'import/no-unresolved': 'off'
|
|
}
|
|
}
|
|
];
|