* tseslint.config returns a typed object
* combine { files }, { languageOptions }
* use tseslint.config extends instead of manual spreads in two objects
* tsParser is already set by tseslint.configs.*
www.typescriptlang.org/play/#code/J...
* tseslint.config returns a typed object
* combine { files }, { languageOptions }
* use tseslint.config extends instead of manual spreads in two objects
* tsParser is already set by tseslint.configs.*
www.typescriptlang.org/play/#code/J...
Release notes: github.com/stylelint/st...
Docs: stylelint.io/user-guide/c...
Release notes: github.com/stylelint/st...
Docs: stylelint.io/user-guide/c...
E.g. For a top-to-bottom, left-to-right language like English:
```
languageOptions: {
directionality: {
block: "top-to-bottom",
inline: "left-to-right",
},
}
```
Docs: stylelint.io/user-guide/c...
E.g. For a top-to-bottom, left-to-right language like English:
```
languageOptions: {
directionality: {
block: "top-to-bottom",
inline: "left-to-right",
},
}
```
Docs: stylelint.io/user-guide/c...
```
export default {
extends: ["stylelint-config-standard"],
languageOptions: {
syntax: {
units: { length: ["--rpx"] }
}
},
};
```
Will now allow: `a { margin: 10--rpx; }`
While still catching: `a { margin: 10ms; }`
```
export default {
extends: ["stylelint-config-standard"],
languageOptions: {
syntax: {
units: { length: ["--rpx"] }
}
},
};
```
Will now allow: `a { margin: 10--rpx; }`
While still catching: `a { margin: 10ms; }`
After a few hours, I figured out what it was missing. I had to explicitly pass rules and react's plugin `languageOptions` into `tslint.config()` #eslint #react #reactHooks
After a few hours, I figured out what it was missing. I had to explicitly pass rules and react's plugin `languageOptions` into `tslint.config()` #eslint #react #reactHooks
The fix is simple. Set languagesOptions.parserOptions.tsconfigRootDir to import.meta.dirname
The fix is simple. Set languagesOptions.parserOptions.tsconfigRootDir to import.meta.dirname
```
import stylisticJs from '@stylistic/eslint-plugin-js';
import globals from "globals";
export default {
configs: {
recommended: {
name: 'mbx/recommended',
plugins: {
'@stylistic/js': stylisticJs,
},
languageOptions: {
sourceType: "module",
globals: { /* […]
```
import stylisticJs from '@stylistic/eslint-plugin-js';
import globals from "globals";
export default {
configs: {
recommended: {
name: 'mbx/recommended',
plugins: {
'@stylistic/js': stylisticJs,
},
languageOptions: {
sourceType: "module",
globals: { /* […]