Skip to content

Commit

Permalink
feat: supporting linting of CJS file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
pbredenberg committed Jun 30, 2023
1 parent 49a6315 commit 69effe6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ module.exports = {
},

'overrides': [
{
'files': [ '*.cjs' ],
},
{
'files': [ '*.ts' ],
'parser': '@typescript-eslint/parser',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "check-node-version --npm 8.5.5",
"release": "standard-version",
"commitlint": "commitlint --from ee3b407",
"eslint": "eslint '{,!(node_modules|dist)/**/}*.js'",
"eslint": "eslint .",
"markdownlint": "markdownlint -c .markdownlint.json -i CHANGELOG.md '{,!(node_modules)/**/}*.md'",
"standards": "npm run commitlint && npm run markdownlint && npm run eslint",
"release:preview": "node ./node_modules/@silvermine/standardization/scripts/release.js preview",
Expand Down
7 changes: 7 additions & 0 deletions test-cases/cjs/test.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

module.exports = {

hello: [ 'goodbye' ],

};

0 comments on commit 69effe6

Please sign in to comment.