@ceylar/ada 0.0.5 → 0.0.6

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.
@@ -0,0 +1,67 @@
1
+ import js from '@eslint/js';
2
+ import react from 'eslint-plugin-react';
3
+ import reactHooks from 'eslint-plugin-react-hooks';
4
+ import simpleImportSort from 'eslint-plugin-simple-import-sort';
5
+ import globals from 'globals';
6
+ import ts from 'typescript-eslint';
7
+
8
+ /** @type {import('eslint').Linter.Config<Linter.RulesRecord>[]} */
9
+ export default ts.config(
10
+ js.configs.recommended,
11
+ ...ts.configs.recommended,
12
+ {
13
+ plugins: {
14
+ react: react,
15
+ 'react-hooks': reactHooks,
16
+ 'simple-import-sort': simpleImportSort,
17
+ ts: ts.plugin
18
+ },
19
+ rules: {
20
+ 'prefer-const': 'error',
21
+ 'no-else-return': 'error',
22
+
23
+ 'react-hooks/exhaustive-deps': 'off',
24
+
25
+ 'no-console': 'warn',
26
+
27
+ 'simple-import-sort/exports': 'error',
28
+ 'simple-import-sort/imports': [
29
+ 'error',
30
+ {
31
+ groups: [
32
+ ['^react', '^@?\\w'],
33
+ ['^@(([\\/.]?\\w)|assets|test-utils)'],
34
+ ['^\\u0000'],
35
+ ['^\\.\\.(?!/?$)', '^\\.\\./?$'],
36
+ ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
37
+ ['^.+\\.s?css$']
38
+ ]
39
+ }
40
+ ]
41
+ },
42
+ languageOptions: {
43
+ globals: {
44
+ ...globals.node,
45
+ ...globals.browser,
46
+ ...globals.es2022
47
+ }
48
+ }
49
+ },
50
+ {
51
+ languageOptions: {
52
+ parserOptions: {
53
+ project: ['tsconfig.json']
54
+ }
55
+ },
56
+ files: ['/src/**/*.ts', '/src/**/*.tsx']
57
+ },
58
+ {
59
+ languageOptions: {
60
+ parserOptions: react.configs.recommended.parserOptions
61
+ },
62
+ files: ['/src/**/*.js', '/src/**/*.jsx']
63
+ },
64
+ {
65
+ ignores: ['node_modules', 'build', 'dist']
66
+ }
67
+ );
@@ -0,0 +1,12 @@
1
+ /** @type {import('prettier').Config} */
2
+ export default {
3
+ printWidth: 120,
4
+ singleQuote: true,
5
+ jsxSingleQuote: true,
6
+ trailingComma: 'none',
7
+ semi: true,
8
+ tabWidth: 2,
9
+ useTabs: false,
10
+ endOfLine: 'crlf',
11
+ arrowParens: 'always'
12
+ };
@@ -0,0 +1,7 @@
1
+ /** @type {import('stylelint').Config} */
2
+ export default {
3
+ extends: 'stylelint-config-standard-scss',
4
+ rules: {
5
+ 'selector-class-pattern': ['^[a-z][a-zA-Z0-9]*$', { message: 'Selector should be in camelCase' }]
6
+ }
7
+ };
@@ -0,0 +1,37 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "module": "esnext",
16
+ "newLine": "lf",
17
+ "moduleResolution": "bundler",
18
+ "isolatedModules": true,
19
+ "resolveJsonModule": true,
20
+ "noEmit": true,
21
+ "jsx": "react-jsx",
22
+ "sourceMap": true,
23
+ "noUnusedLocals": true,
24
+ "noUnusedParameters": true,
25
+ "noFallthroughCasesInSwitch": true,
26
+ "baseUrl": ".",
27
+ "paths": {
28
+ "@/*": [
29
+ "./src/*"
30
+ ],
31
+ }
32
+ },
33
+ "exclude": [
34
+ "dist",
35
+ "node_modules",
36
+ ]
37
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ceylar/ada",
3
3
  "description": "CLI to help you initialize projects",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {