Skip to content

Commit

Permalink
Migrate eslint/stylelint configs to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
LkeMitchll committed Jan 8, 2024
1 parent 8e44654 commit b9d704a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions package.json
Expand Up @@ -36,22 +36,20 @@
"ecmaVersion": "latest"
},
"rules": {
"global-require": 0
"global-require": 0,
"import/extensions": [ "error", "ignorePackages", { "js": "always" } ]
}
},
"stylelint": {
"extends": "stylelint-config-standard",
"ignoreFiles": [
"./**/*.js",
"./**/*.cjs"
]
"ignoreFiles": [ "./**/*.js" ]
},
"scripts": {
"clean": "rm -rf _site .cache",
"start": "npm run build -- --serve --quiet",
"build": "npx @11ty/eleventy",
"test": "npm run lint:stylelint & npm run lint:eslint",
"lint:stylelint": "stylelint ./src/**/*.css",
"lint:eslint": "eslint ./src/**/*.cjs"
"lint:eslint": "eslint ./src/**/*.js"
}
}

0 comments on commit b9d704a

Please sign in to comment.