Skip to content

Commit

Permalink
update linting configs
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed May 10, 2022
1 parent 7f8ef41 commit 3ac04ae
Show file tree
Hide file tree
Showing 8 changed files with 335 additions and 38 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

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

This file was deleted.

28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

35 changes: 35 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended'],
ignorePatterns: [
'test/fixtures/integration/dist/**/*',
'test/integration/fixture/**/*',
'test/disks/**/*'
],
parserOptions: {
sourceType: 'module'
},
env: {
node: true,
es2021: true
},
rules: {
'no-const-assign': 'off',
'newline-before-return': 'error',
semi: 'error',
'no-unreachable': 'error',
'no-extra-semi': 'error',
'no-unexpected-multiline': 'error',
'comma-dangle': [
'error',
{
arrays: 'never',
objects: 'never',
imports: 'never',
exports: 'never',
functions: 'never'
}
]
}
};
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Jeffrey Way <jeffrey@jeffrey-way.com>
Copyright (c) 2018–2022 Jeffrey Way <jeffrey@jeffrey-way.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 3ac04ae

Please sign in to comment.