generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 20
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
15204c1
commit 04fb948
Showing
3 changed files
with
78 additions
and
13 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
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, | ||
|
||
// 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' | ||
|
||
// 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-undef': 'off' | ||
} | ||
}, | ||
|
||
// Prettier configuration to disable conflicting rules | ||
{ | ||
rules: { | ||
...prettierConfig.rules | ||
} | ||
}, | ||
|
||
// Custom rules (if any) | ||
{ | ||
languageOptions: { | ||
globals: { | ||
document: 'readonly', | ||
window: 'readonly', | ||
FileReader: 'readonly', | ||
FormData: 'readonly', | ||
URLSearchParams: 'readonly', | ||
localStorage: 'readonly', | ||
fetch: 'readonly', | ||
alert: 'readonly', | ||
console: 'readonly', | ||
route: 'readonly' | ||
} | ||
}, | ||
rules: { | ||
// Add your custom rules here | ||
} | ||
}, | ||
|
||
// Ignore patterns | ||
{ | ||
ignores: ['node_modules/*', 'vendor/*', 'public/*'] | ||
} | ||
] |