Skip to content

Commit

Permalink
Move .eslintrc.js to govuk-frontend-review.eslintrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickpatrickpatrick committed Nov 21, 2024
1 parent 1b8d363 commit 5be67d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/govuk-frontend-review/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const createConfig = require('@govuk-frontend/eslint-config/govuk-frontend-review.eslintrc.js')

module.exports = createConfig(__dirname)
1 change: 1 addition & 0 deletions packages/govuk-frontend-review/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"dependencies": {
"@govuk-frontend/config": "*",
"@govuk-frontend/eslint-config": "*",
"@govuk-frontend/lib": "*",
"@govuk-frontend/stats": "*",
"@prettier/sync": "^0.5.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const { join } = require('path')

module.exports = {
module.exports = (dirname) => ({
overrides: [
{
files: ['**/*.mjs'],
excludedFiles: ['**/*.test.mjs'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: [join(__dirname, 'tsconfig.dev.json')]
project: [join(dirname, 'tsconfig.dev.json')]
},
plugins: ['@typescript-eslint']
}
]
}
})

0 comments on commit 5be67d7

Please sign in to comment.