generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
450ae24
commit 59fa5d7
Showing
2 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,64 @@ | ||
import js from '@eslint/js'; | ||
import vue from 'eslint-plugin-vue'; | ||
import vueParser from 'vue-eslint-parser'; | ||
import prettierConfig from 'eslint-config-prettier'; | ||
import js from '@eslint/js' | ||
import vue from 'eslint-plugin-vue' | ||
import vueParser from 'vue-eslint-parser' | ||
import prettierConfig from 'eslint-config-prettier' | ||
|
||
export default [ | ||
// Base ESLint recommended rules | ||
js.configs.recommended, | ||
|
||
// Base ESLint recommended rules | ||
js.configs.recommended, | ||
// Vue plugin configuration | ||
{ | ||
files: ['**/*.vue'], | ||
languageOptions: { | ||
parser: vueParser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
} | ||
}, | ||
plugins: { | ||
vue | ||
}, | ||
rules: { | ||
// Combine base and recommended Vue rules | ||
...vue.configs.base.rules, | ||
...vue.configs['vue3-recommended'].rules, | ||
|
||
// Vue plugin configuration | ||
{ | ||
files: ['**/*.vue'], | ||
languageOptions: { | ||
parser: vueParser, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
plugins: { | ||
vue, | ||
}, | ||
rules: { | ||
// Combine base and recommended Vue rules | ||
...vue.configs.base.rules, | ||
...vue.configs['vue3-recommended'].rules, | ||
|
||
// Disable specific Vue rules | ||
'vue/no-v-html': 'off', | ||
'vue/comment-directive': 'off', // Previously disabled | ||
// Disable specific Vue rules | ||
'vue/no-v-html': 'off', | ||
'vue/comment-directive': 'off' // Previously disabled | ||
|
||
// You can add other Vue-specific rules here | ||
// You can add other Vue-specific rules here | ||
} | ||
}, | ||
}, | ||
|
||
// General JavaScript rules (for .js and .vue files) | ||
{ | ||
files: ['**/*.{js,vue}'], | ||
rules: { | ||
// Disable general ESLint rules | ||
'no-unused-vars': 'off', | ||
'no-undef': 'off', | ||
// General JavaScript rules (for .js and .vue files) | ||
{ | ||
files: ['**/*.{js,vue}'], | ||
rules: { | ||
// Disable general ESLint rules | ||
'no-unused-vars': 'off', | ||
'no-undef': 'off' | ||
} | ||
}, | ||
}, | ||
|
||
// Prettier configuration to disable conflicting rules | ||
{ | ||
rules: { | ||
...prettierConfig.rules, | ||
// Prettier configuration to disable conflicting rules | ||
{ | ||
rules: { | ||
...prettierConfig.rules | ||
} | ||
}, | ||
}, | ||
|
||
// Custom rules (if any) | ||
{ | ||
rules: { | ||
// Add your custom rules here | ||
// Custom rules (if any) | ||
{ | ||
rules: { | ||
// Add your custom rules here | ||
} | ||
}, | ||
}, | ||
|
||
// Ignore patterns | ||
{ | ||
ignores: ['node_modules/*', 'vendor/*'], | ||
}, | ||
]; | ||
// Ignore patterns | ||
{ | ||
ignores: ['node_modules/*', 'vendor/*'] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters