Skip to content

Commit

Permalink
migrate eslint config to new format, replace broken standard library …
Browse files Browse the repository at this point in the history
…with neostandard
  • Loading branch information
goapunk authored and hom3mad3 committed Oct 31, 2024
1 parent cae85fb commit 6ff8b5f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 49 deletions.
44 changes: 0 additions & 44 deletions .eslintrc

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import promise from "eslint-plugin-promise";
import neostandard from 'neostandard'

export default [
...neostandard(),
{
ignores: [
"node_modules/",
"venv/",
"static/"
],
languageOptions: { globals: globals.browser },
plugins: {
promise: promise,
},
rules: {
"no-restricted-syntax": ["error", "TemplateLiteral"],
},
settings: {
"import/core-modules": ["django"],
},
},
];
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@
"type": "git",
"url": "https://github.com/liqd/digitalstrategie.git"
},
"dependencies": {
},
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/preset-env": "7.26.0",
"@eslint/js": "9.13.0",
"autoprefixer": "10.4.20",
"babel-loader": "9.2.1",
"copy-webpack-plugin": "12.0.2",
"css-loader": "7.1.2",
"eslint": "9.13.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-promise": "7.1.0",
"glob": "11.0.0",
"globals": "15.11.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"mini-css-extract-plugin": "2.9.1",
"neostandard": "0.11.7",
"path-browserify": "1.0.1",
"postcss": "8.4.47",
"postcss-loader": "8.1.1",
Expand All @@ -38,13 +39,16 @@
"build:prod": "webpack --config webpack.prod.js --mode production",
"build": "webpack --config webpack.dev.js --mode development",
"watch": "webpack --config webpack.dev.js --watch --mode development",
"lint": "stylelint 'digitalstrategie/assets/scss/**/*.scss'",
"lint-fix": "stylelint --fix 'digitalstrategie/assets/scss/**/*.scss'",
"lint": "eslint apps && stylelint 'digitalstrategie/assets/scss/**/*.scss'",
"lint-fix": "eslint --fix stylelint --fix 'digitalstrategie/assets/scss/**/*.scss'",
"lint-staged": "lint-staged",
"postinstall": "husky install"
},
"browserslist": "defaults and not dead and >= 0.5%, ie >= 11",
"lint-staged": {
"*.{js,jsx}": [
"eslint"
],
"*.scss": [
"stylelint"
],
Expand Down

0 comments on commit 6ff8b5f

Please sign in to comment.