-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from implydata/node-20
Node 20, code style, etc.
- Loading branch information
Showing
11 changed files
with
6,352 additions
and
5,517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) Imply Data, Inc. All rights reserved. | ||
* | ||
* This software is the confidential and proprietary information | ||
* of Imply Data, Inc. | ||
*/ | ||
|
||
import awesomeCodeStyle, { configs } from '@awesome-code-style/eslint-config'; | ||
import notice from 'eslint-plugin-notice'; | ||
import globals from 'globals'; | ||
|
||
const TYPESCRIPT_FILES = ['**/*.ts', '**/*.tsx']; | ||
|
||
export default [ | ||
...awesomeCodeStyle, | ||
...configs.typeChecked.map(config => ({ ...config, files: TYPESCRIPT_FILES })), | ||
{ | ||
plugins: { | ||
notice, | ||
}, | ||
rules: { | ||
'notice/notice': [2, { mustMatch: 'Copyright (\\(c\\)|[\\d+-]+) Imply Data, Inc.' }], | ||
}, | ||
}, | ||
{ | ||
files: ['*.mjs'], | ||
languageOptions: { | ||
globals: globals.node, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-require-imports': [0], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.