Files
linux-odyssey/.eslintrc.js
T

58 lines
1.5 KiB
JavaScript

module.exports = {
root: true,
env: {
node: true,
jest: true,
},
plugins: ['@typescript-eslint', 'cypress'],
extends: [
'plugin:vue/vue3-essential',
'airbnb-base',
'plugin:prettier/recommended', // We added this
'plugin:cypress/recommended',
// 'plugin:@typescript-eslint/recommended', // Use recommended rules from the @typescript-eslint/eslint-plugin
],
parser: '@typescript-eslint/parser', // Specify the TypeScript parser
parserOptions: {
// parser: 'babel-eslint',
ecmaVersion: 13,
sourceType: 'module',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'no-console': 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
camelcase: ['error', { properties: 'never', ignoreDestructuring: true }],
'no-param-reassign': ['error', { props: false }],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
/* we added this */
'no-var': 'error',
'no-plusplus': 'off',
'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }],
'import/prefer-default-export': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'@typescript-eslint/explicit-module-boundary-types': 'off',
// Allow missing file extensions
'import/extensions': [
'warn',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
}