1- # @lmc-eu /eslint-config-typescript
1+ # @alma-oss /eslint-config-typescript
22
33These configuration files are suitable to lint TypeScript code.
44
@@ -14,53 +14,53 @@ See the example _.eslintrc.js_ file below for more details and make sure you rea
1414
1515## Configurations
1616
17- - ** ` @lmc-eu /eslint-config-typescript ` **
17+ - ** ` @alma-oss /eslint-config-typescript ` **
1818
1919Suitable for linting TypeScript source files.
2020
2121Together with this ruleset, you should also choose one base ruleset depending on your target platform:
2222
23- - [ ` @lmc-eu /eslint-config-node ` ] [ eslint-config-node ]
24- - [ ` @lmc-eu /eslint-config-react ` ] [ eslint-config-react ]
23+ - [ ` @alma-oss /eslint-config-node ` ] [ eslint-config-node ]
24+ - [ ` @alma-oss /eslint-config-react ` ] [ eslint-config-react ]
2525
26- ### ` @lmc-eu /eslint-config-typescript/react `
26+ ### ` @alma-oss /eslint-config-typescript/react `
2727
2828React specific overrides.
2929
3030## Optional Configurations
3131
32- ### ` @lmc-eu /eslint-config-typescript/optional `
32+ ### ` @alma-oss /eslint-config-typescript/optional `
3333
3434Use this ruleset together with any of the above version-specific rulesets. Provides additional insights into potential inconsistencies in the project.
3535
3636> For new projects, it is recommended to enable this ruleset. For existing projects, it is only recommended for the brave.
3737
3838## Coding Styles
3939
40- ### ` @lmc-eu /eslint-config-typescript/style `
40+ ### ` @alma-oss /eslint-config-typescript/style `
4141
4242This ruleset includes rules which deal with how the code looks like and not how it works. It helps keeping the code clean and consistent. 🎨
4343
4444A full configuration for a TypeScript on Node.js project:
4545
4646``` js
47- // .eslintrc .js
48- ' use strict ' ;
47+ // eslint.config .js
48+ import { defineConfig } from ' eslint/config ' ;
4949
50- module . exports = {
50+ export default defineConfig ( {
5151 extends: [
52- ' @lmc-eu /eslint-config-node/v10' ,
53- ' @lmc-eu /eslint-config-node/optional' ,
54- ' @lmc-eu /eslint-config-typescript' ,
55- ' @lmc-eu /eslint-config-typescript/style' ,
52+ ' @alma-oss /eslint-config-node/v10' ,
53+ ' @alma-oss /eslint-config-node/optional' ,
54+ ' @alma-oss /eslint-config-typescript' ,
55+ ' @alma-oss /eslint-config-typescript/style' ,
5656 ],
5757
5858 parserOptions: {
5959 // The project field is required in order for some TS-syntax-specific rules to function at all
6060 // @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
6161 project: ' ./tsconfig.json' ,
6262 },
63- };
63+ }) ;
6464```
6565
6666A full configuration for a TypeScript on React project:
@@ -71,10 +71,10 @@ A full configuration for a TypeScript on React project:
7171// eslint.config.mjs
7272import { defineConfig , globalIgnores } from ' eslint/config' ;
7373import { FlatCompat } from ' @eslint/eslintrc' ;
74- import react from ' @lmc-eu /eslint-config-react' ;
75- import reactOptional from ' @lmc-eu /eslint-config-react/optional' ;
76- import ts from ' @lmc-eu /eslint-config-typescript' ;
77- import tsReact from ' @lmc-eu /eslint-config-typescript/react' ;
74+ import react from ' @alma-oss /eslint-config-react' ;
75+ import reactOptional from ' @alma-oss /eslint-config-react/optional' ;
76+ import ts from ' @alma-oss /eslint-config-typescript' ;
77+ import tsReact from ' @alma-oss /eslint-config-typescript/react' ;
7878
7979const compat = new FlatCompat ({
8080 baseDirectory: import .meta.dirname,
@@ -116,6 +116,6 @@ The [vscode-eslint](https://github.com/Microsoft/vscode-eslint) plugin for integ
116116
117117> Notice we are adding ` javascriptreact ` and ` typescriptreact ` above. It won’t harm adding those, but you can always omit these languages if not using them.
118118
119- [ eslint-config-node ] : https://www.npmjs.com/package/@lmc-eu /eslint-config-node
120- [ eslint-config-react ] : https://www.npmjs.com/package/@lmc-eu /eslint-config-react
119+ [ eslint-config-node ] : https://www.npmjs.com/package/@alma-oss /eslint-config-node
120+ [ eslint-config-react ] : https://www.npmjs.com/package/@alma-oss /eslint-config-react
121121[ ts-parser-configuration ] : https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
0 commit comments