@alveole/eslint-config 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rules/_shared.js +8 -0
package/package.json
CHANGED
package/rules/_shared.js
CHANGED
|
@@ -122,6 +122,14 @@ const config = {
|
|
|
122
122
|
flashList: flashListPlugin,
|
|
123
123
|
},
|
|
124
124
|
rules: {
|
|
125
|
+
'no-restricted-syntax': [
|
|
126
|
+
'error',
|
|
127
|
+
{
|
|
128
|
+
selector:
|
|
129
|
+
'JSXAttribute[name.name=/^(justifyContent|justifyItems|justifySelf|alignItems|alignContent|alignSelf)$/]',
|
|
130
|
+
message: "Cette prop CSS ne fonctionne pas directement sur Box. Passer par style={{ justifyContent: '...' }}.",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
125
133
|
'no-redeclare': 'off',
|
|
126
134
|
'@typescript-eslint/no-redeclare': ['error', { ignoreDeclarationMerge: true }],
|
|
127
135
|
'flashList/prefer-flash-list': 'error',
|