Skip to content

Commit

Permalink
Implemented eslint-plugin-import as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Dec 16, 2024
1 parent 289e89d commit 7d6bb14
Show file tree
Hide file tree
Showing 3 changed files with 1,824 additions and 53 deletions.
6 changes: 4 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import js from '@eslint/js'
import stylisticJS from '@stylistic/eslint-plugin-js'
import importPlugin from 'eslint-plugin-import'
import json from '@eslint/json'
import markdown from '@eslint/markdown'
import stylisticJS from '@stylistic/eslint-plugin-js'
import yml from 'eslint-plugin-yml'

export default [
{
files: ['**/*.js', '**/*.mjs'],
languageOptions: { ecmaVersion: 'latest', sourceType: 'script', globals: { chrome: 'readonly' }},
plugins: { 'js-styles': stylisticJS },
plugins: { 'import': importPlugin, 'js-styles': stylisticJS },
rules: {
...js.configs.recommended.rules,
...importPlugin.flatConfigs.recommended.rules,
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
'js-styles/no-trailing-spaces': 'error', // ...except at ends of lines
'js-styles/max-len': ['error', { 'code': 120, // limit lines to 120 chars except if containing...
Expand Down
Loading

0 comments on commit 7d6bb14

Please sign in to comment.