Skip to content

Commit

Permalink
Use gitignore in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Jun 24, 2024
1 parent 9991ba8 commit 4ace46a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ import stylistic from '@stylistic/eslint-plugin'
import nodePlugin from 'eslint-plugin-n'
import vueParser from 'vue-eslint-parser'
import { readFileSync } from 'node:fs'
import { includeIgnoreFile } from '@eslint/compat'
import path from 'node:path'

const inlineElementsJson = readFileSync('node_modules/eslint-plugin-vue/lib/utils/inline-non-void-elements.json').toString('utf-8')
const inlineElements = JSON.parse(inlineElementsJson)

export default tseslint.config(
{
ignores: [
'**/dist*/*',
'**/raw/**',
],
},
includeIgnoreFile(path.resolve('.gitignore')),

{
languageOptions: {
globals: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"shiki": "^1.5.2"
},
"devDependencies": {
"@eslint/compat": "^1.1.0",
"@eslint/js": "^9.4.0",
"@quasar/extras": "^1.16.11",
"@quasar/vite-plugin": "^1.7.0",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.1.tgz#361461e5cb3845d874e61731c11cfedd664d83a0"
integrity sha512-Zm2NGpWELsQAD1xsJzGQpYfvICSsFkEpU0jxBjfdC6uNEWXcHnfs9hScFWtXVDVl+rBQJGrl4g1vcKIejpH9dA==

"@eslint/compat@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@eslint/compat/-/compat-1.1.0.tgz#fdc7d19a66820770bf58ced0342153769d8686f0"
integrity sha512-s9Wi/p25+KbzxKlDm3VshQdImhWk+cbdblhwGNnyCU5lpSwtWa4v7VQCxSki0FAUrGA3s8nCWgYzAH41mwQVKQ==

"@eslint/config-array@^0.16.0":
version "0.16.0"
resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.16.0.tgz#bb3364fc39ee84ec3a62abdc4b8d988d99dfd706"
Expand Down

0 comments on commit 4ace46a

Please sign in to comment.