2024-01-13 14:41:52 +03:00
|
|
|
root: true
|
2021-02-13 18:57:45 +03:00
|
|
|
|
|
|
|
extends:
|
2024-01-13 14:41:52 +03:00
|
|
|
- 'eslint:recommended'
|
|
|
|
- 'airbnb-base'
|
|
|
|
- 'airbnb-typescript/base'
|
|
|
|
- 'plugin:vue/base'
|
|
|
|
- 'plugin:vue/vue3-essential'
|
|
|
|
- 'plugin:vue/vue3-strongly-recommended'
|
|
|
|
- 'plugin:vue/vue3-recommended'
|
|
|
|
- 'plugin:import/typescript'
|
|
|
|
- '@vue/typescript/recommended'
|
|
|
|
- 'prettier'
|
2021-02-25 23:07:15 +03:00
|
|
|
|
2024-01-13 14:41:52 +03:00
|
|
|
parser: "vue-eslint-parser"
|
2021-02-25 23:07:15 +03:00
|
|
|
|
2024-01-13 14:41:52 +03:00
|
|
|
parserOptions:
|
|
|
|
parser: "@typescript-eslint/parser"
|
|
|
|
project: './tsconfig.json'
|
|
|
|
tsconfigRootDir: './'
|
2023-11-20 16:44:57 +03:00
|
|
|
|
2024-01-13 14:41:52 +03:00
|
|
|
plugins:
|
|
|
|
- vue
|
|
|
|
- '@typescript-eslint'
|
2022-07-01 11:59:17 +03:00
|
|
|
|
2024-01-13 14:41:52 +03:00
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
|
|
|
|
globals:
|
|
|
|
OC: readonly
|
|
|
|
n: readonly
|
|
|
|
t: readonly
|
2023-01-14 16:05:51 +03:00
|
|
|
|
2022-07-01 11:59:17 +03:00
|
|
|
settings:
|
2024-01-13 14:41:52 +03:00
|
|
|
import/resolver:
|
|
|
|
node:
|
|
|
|
paths: ['src']
|
|
|
|
extensions: ['.js','.ts','.d.ts']
|
|
|
|
typescript:
|
|
|
|
project: './tsconfig.json'
|
|
|
|
alias:
|
|
|
|
map:
|
|
|
|
- ['cookbook', './src']
|
|
|
|
- ['icons', './node_modules/vue-material-design-icons']
|
|
|
|
extensions: ['.js','.ts','.d.ts']
|
2023-11-20 16:44:57 +03:00
|
|
|
|
2024-01-13 14:41:52 +03:00
|
|
|
rules:
|
|
|
|
import/extensions:
|
|
|
|
- error
|
|
|
|
- ignorePackages
|
|
|
|
- js: 'never'
|
|
|
|
jsx: 'never'
|
|
|
|
ts: 'never'
|
|
|
|
tsx: 'never'
|
|
|
|
no-plusplus:
|
|
|
|
- error
|
|
|
|
- allowForLoopAfterthoughts: true
|
|
|
|
quotes:
|
|
|
|
- error
|
|
|
|
- single
|
|
|
|
- avoidEscape: true
|
|
|
|
semi:
|
|
|
|
- error
|
|
|
|
- always
|
|
|
|
# disallow certain syntax forms
|
|
|
|
# http://eslint.org/docs/rules/no-restricted-syntax
|
|
|
|
no-restricted-syntax:
|
|
|
|
- error
|
|
|
|
- ForInStatement
|
|
|
|
- LabeledStatement
|
|
|
|
- WithStatement
|
|
|
|
# While we are still on Vue2, we need this. Remove once on Vue3
|
|
|
|
vue/no-deprecated-dollar-listeners-api: off
|
|
|
|
# While we are still on Vue2, we need this. Remove once on Vue3
|
|
|
|
vue/no-deprecated-v-bind-sync: off
|
2023-11-20 16:44:57 +03:00
|
|
|
|
|
|
|
overrides:
|
2024-01-13 14:41:52 +03:00
|
|
|
- files: [ "src/composables/**/*.js" ]
|
|
|
|
rules:
|
|
|
|
import/prefer-default-export: off
|
|
|
|
|
2023-11-20 16:44:57 +03:00
|
|
|
|