frequi_origin/.eslintrc.js

71 lines
1.7 KiB
JavaScript
Raw Normal View History

2020-05-04 04:31:12 +00:00
module.exports = {
root: true,
2020-11-10 19:52:39 +00:00
2020-05-04 04:31:12 +00:00
env: {
2020-05-18 18:49:30 +00:00
node: true,
2020-05-04 04:31:12 +00:00
},
2020-11-10 19:52:39 +00:00
2020-05-18 18:49:30 +00:00
extends: [
// vue/recommended includes all higher levels (vue/strongly-recommended, vue/essential)
2023-04-13 05:28:08 +00:00
'plugin:vue/vue3-recommended',
2020-06-05 09:04:53 +00:00
'@vue/typescript/recommended',
2023-04-13 05:28:08 +00:00
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier',
// '@vue/prettier/@typescript-eslint',
2020-05-04 04:31:12 +00:00
],
2020-11-10 19:52:39 +00:00
2020-06-20 14:12:28 +00:00
parser: 'vue-eslint-parser',
2020-11-10 19:52:39 +00:00
2020-05-04 04:31:12 +00:00
parserOptions: {
2020-06-20 14:12:28 +00:00
parser: '@typescript-eslint/parser',
sourceType: 'module',
2020-06-05 09:04:53 +00:00
ecmaVersion: 2020,
2020-05-04 04:31:12 +00:00
},
2020-11-10 19:52:39 +00:00
2020-05-04 04:31:12 +00:00
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2020-05-04 05:28:53 +00:00
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2020-06-20 15:25:52 +00:00
'class-methods-use-this': 0,
2020-09-08 09:53:25 +00:00
// disable eslint no-shadow as it's causing false positives on typescript enums
'no-shadow': 'off',
2021-01-29 06:57:35 +00:00
'prettier/prettier': ['error'],
2023-04-13 05:28:08 +00:00
// '@typescript-eslint/naming-convention': [
// 'error',
// {
// selector: 'default',
// format: ['camelCase'],
// },
// {
// selector: 'variable',
// format: ['camelCase', 'UPPER_CASE'],
// },
// {
// selector: 'parameter',
// format: ['camelCase'],
// leadingUnderscore: 'allow',
// },
// {
// selector: 'memberLike',
// modifiers: ['private'],
// format: ['camelCase'],
// leadingUnderscore: 'require',
// },
// {
// selector: 'typeLike',
// format: ['PascalCase'],
// },
// {
// selector: 'class',
// format: ['PascalCase'],
// },
// ],
2020-05-18 18:49:30 +00:00
},
2020-11-10 19:52:39 +00:00
overrides: [
{
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
},
],
2020-05-18 18:49:30 +00:00
};