Skip to content

Commit

Permalink
add eslint.config.js
Browse files Browse the repository at this point in the history
This patch adds the ESLint configuration file, which was previously ignored.

Signed-off-by: Amy Parker <amy@amyip.net>
  • Loading branch information
amyipdev committed Aug 15, 2023
1 parent bde5734 commit 1dbd280
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ _static/
_templates/
*.tar.gz
artifacts/
rpmbuild/
rpmbuild/
!eslint.config.js
18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const tsp = require('@typescript-eslint/eslint-plugin');
const tsa = require('@typescript-eslint/parser');

module.exports = [
{
files: ["js/*.ts"],
rules: {
semi: "error",
"prefer-const": "error"
},
plugins: { '@typescript-eslint': tsp },
languageOptions: {
ecmaVersion: 2015,
sourceType: "module",
parser: tsa
}
}
];

0 comments on commit 1dbd280

Please sign in to comment.