@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rules/_shared.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/eslint-config",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "ESLint flat config pour les projets Alveole",
5
5
  "main": "index.js",
6
6
  "scripts": {
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',