-
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.
feat: migrate to ESLint 9 and flat config
Related to bpmn-io/internal-docs#1042
- Loading branch information
1 parent
732d160
commit 4ff7efc
Showing
18 changed files
with
3,104 additions
and
911 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
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
const path = require('path'); | ||
import licenseHeaderPlugin from 'eslint-plugin-license-header'; | ||
|
||
module.exports = { | ||
plugins: [ | ||
'license-header' | ||
], | ||
rules: { | ||
'license-header/header': [2, path.join(__dirname, '/../resources/apache-license-header.js') ] | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const path = fileURLToPath(new URL('../resources/apache-license-header.txt', import.meta.url)); | ||
|
||
export default [ | ||
{ | ||
plugins: { | ||
'license-header': licenseHeaderPlugin | ||
}, | ||
rules: { | ||
'license-header/header': [2, path] | ||
} | ||
} | ||
}; | ||
] |
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
const path = require('path'); | ||
import licenseHeaderPlugin from 'eslint-plugin-license-header'; | ||
|
||
module.exports = { | ||
plugins: [ | ||
'license-header' | ||
], | ||
rules: { | ||
'license-header/header': [2, path.join(__dirname, '/../resources/commercial-license-header.js') ] | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const path = fileURLToPath(new URL('../resources/commercial-license-header.txt', import.meta.url)); | ||
|
||
export default [ | ||
{ | ||
plugins: { | ||
'license-header': licenseHeaderPlugin | ||
}, | ||
rules: { | ||
'license-header/header': [2, path] | ||
} | ||
} | ||
}; | ||
] |
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
const path = require('path'); | ||
import licenseHeaderPlugin from 'eslint-plugin-license-header'; | ||
|
||
module.exports = { | ||
plugins: [ | ||
'license-header' | ||
], | ||
rules: { | ||
'license-header/header': [2, path.join(__dirname, '/../resources/MIT-license-header.js') ] | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const path = fileURLToPath(new URL('../resources/MIT-license-header.txt', import.meta.url)); | ||
|
||
export default [ | ||
{ | ||
plugins: { | ||
'license-header': licenseHeaderPlugin | ||
}, | ||
rules: { | ||
'license-header/header': [2, path] | ||
} | ||
} | ||
}; | ||
] |
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
Oops, something went wrong.