Comments (1)
import pluginVue from 'eslint-plugin-vue'
import globals from 'globals'
import { FlatCompat } from '@eslint/eslintrc'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
import path from 'path'
import { fileURLToPath } from 'url'
// mimic CommonJS variables -- not needed if using CommonJS
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended, allConfig: pluginJs.configs.all })
export default [
{
languageOptions: {
globals: {
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
...globals.browser
},
parserOptions: {
extraFileExtensions: ['.vue']
}
},
ignores: [
'/dist',
'/src-capacitor',
'/src-cordova',
'/.quasar',
'/node_modules',
'/quasar.config.*.temporary.compiled*'
]
},
...compat.extends('prettier', 'standard-with-typescript'),
...pluginVue.configs['flat/recommended'],
...tseslint.configs.recommended
]
Fixed with this config
from eslint.
Related Issues (20)
- Docs: `no-unreachable` is not necessarily handled by TypeScript HOT 3
- Bug: eslint v8 with flat config and airbnb-base throws cryptic error
- Docs: custom rule tutorial doesn't work with v9 HOT 1
- Scheduled release for May 3rd, 2024 HOT 2
- Change Request: Make it easier to inherit flat configs from the repo root HOT 26
- This method cannot be used with flat config. Add your entries directly into the config array. HOT 1
- 📈 Tracking: ESLint v9 support HOT 10
- Change Request: use env npm_execpath in alias init HOT 1
- Rule Change: stop fixing prefer-const HOT 2
- Bug: using `--ext` throws an invalid option error HOT 4
- Change Request: (add eslint warnings exit code) HOT 13
- FlatCompat not working anymore with eslint v9 HOT 5
- Bug: (Error when opening configuration files, like eslint.config.mjs and.prettierrc) HOT 2
- Bug: An error occurs when invoking `ESLint#lintFiles()` in Jest HOT 8
- Bug: TypeError [ERR_IMPORT_ATTRIBUTE_MISSING] HOT 1
- Prasing file is taking over a min HOT 1
- Change Request: resolveConfigsRelativeTo HOT 1
- Bug: the `files` and `ignore` configuration properties are being ignored HOT 3
- Docs: double negative in configuration file resolution HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint.