feat(tooling): add eslint-config to tooling pkgs
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
22
tooling/eslint-config/index.js
Normal file
22
tooling/eslint-config/index.js
Normal file
@@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
extends: ['@antfu', 'plugin:prettier/recommended'],
|
||||
plugins: ['prettier'],
|
||||
rules: {
|
||||
'vue/no-setup-props-destructure': 0,
|
||||
'no-console': 0,
|
||||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
singleQuote: true,
|
||||
trailingComma: 'all',
|
||||
semi: false,
|
||||
quoteProps: 'consistent',
|
||||
bracketSpacing: true,
|
||||
printWidth: 130,
|
||||
},
|
||||
],
|
||||
'antfu/if-newline': 0,
|
||||
'antfu/generic-spacing': 0,
|
||||
},
|
||||
}
|
||||
14
tooling/eslint-config/package.json
Normal file
14
tooling/eslint-config/package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "@vue-flow/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"devDependencies": {
|
||||
"eslint": "^8.34.0",
|
||||
"eslint-config-prettier": "^8.6.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-config-turbo": "0.0.8",
|
||||
"prettier": "^2.8.4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user