Skip to content

Commit

Permalink
Revert "Fix NPM warnings (#1329)"
Browse files Browse the repository at this point in the history
This reverts commit 1a547f1.
  • Loading branch information
melroy89 committed Dec 29, 2024
1 parent 1a547f1 commit 2cf8367
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 275 deletions.
50 changes: 50 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"env": {
"browser": true,
"node": true,
"es2021": true
},
"plugins": [
"@stylistic"
],
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": [
"/*",
"!/assets"
],
"rules": {
"@stylistic/indent": ["error", 4],
"@stylistic/linebreak-style": ["error", "unix"],
"@stylistic/eol-last": ["error", "always"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": ["error", "1tbs"],
"@stylistic/comma-dangle": ["error", "always-multiline"],
"@stylistic/comma-spacing": ["error"],
"@stylistic/keyword-spacing": ["error"],
"@stylistic/no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 0, "maxBOF": 0}],
"@stylistic/no-trailing-spaces": ["error"],
"@stylistic/no-multi-spaces": ["error"],
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/quotes": ["error", "single", {"avoidEscape": true}],
"@stylistic/semi": ["error", "always"],
"@stylistic/space-before-blocks": ["error"],
"@stylistic/space-in-parens": ["error", "never"],
"camelcase": ["error", {"ignoreImports": true}],
"curly": ["error", "all"],
"eqeqeq": ["error", "always"],
"no-console": ["off"],
"no-duplicate-imports": ["error"],
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-empty-function": ["error", {"allow": ["arrowFunctions", "constructors"]}],
"no-eval": ["error"],
"no-implicit-coercion": ["error"],
"no-implied-eval": ["error"],
"prefer-const": ["error"],
"sort-imports": ["error"],
"yoda": ["error", "always"]
}
}
2 changes: 1 addition & 1 deletion assets/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './bootstrap.js';
import './styles/app.scss';
import './utils/popover.js';
import './utils/popover';
import '@github/markdown-toolbar-element';
import { Application } from '@hotwired/stimulus';

Expand Down
67 changes: 0 additions & 67 deletions eslint.config.js

This file was deleted.

Loading

0 comments on commit 2cf8367

Please sign in to comment.