Skip to content

Commit

Permalink
switch to eslint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaileykaes committed Feb 21, 2024
1 parent 5ab4c51 commit 3f76b6c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 37 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2
24 changes: 0 additions & 24 deletions .eslintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.experimental.useFlatConfig": true
}
19 changes: 6 additions & 13 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
"use strict";
import mod from "@peggyjs/eslint-config/flat/module.js";

export default [
{
files: [
"**/*.js",
ignores: [
"node_module/**",
"**/*.d.ts",
],
rules: {
"comma-dangle": ["error", {
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "never",
}],
},
},
];
mod,
];

0 comments on commit 3f76b6c

Please sign in to comment.