mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
* 🎉 Add tokens to plugins API documentation And add poc plugin example * 📚 Document better the tokens value in plugins API * 🔧 Refactor token validation schemas * 🔧 Use automatic validation in token proxies * 🔧 Use schemas to validate token creation * 🔧 Use multi schema for token value * 🔧 Use schema in token api methods * 🐛 Fix review comments --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import baseConfig from '../../eslint.config.js';
|
|
import { compat } from '../../eslint.base.config.js';
|
|
|
|
export default [
|
|
...baseConfig,
|
|
...compat
|
|
.config({
|
|
extends: [
|
|
'plugin:@nx/angular',
|
|
'plugin:@angular-eslint/template/process-inline-templates',
|
|
],
|
|
})
|
|
.map((config) => ({
|
|
...config,
|
|
files: ['**/*.ts'],
|
|
rules: {
|
|
'@angular-eslint/directive-selector': [
|
|
'error',
|
|
{
|
|
type: 'attribute',
|
|
prefix: 'app',
|
|
style: 'camelCase',
|
|
},
|
|
],
|
|
'@angular-eslint/component-selector': [
|
|
'error',
|
|
{
|
|
type: 'element',
|
|
prefix: 'app',
|
|
style: 'kebab-case',
|
|
},
|
|
],
|
|
},
|
|
})),
|
|
...compat
|
|
.config({ extends: ['plugin:@nx/angular-template'] })
|
|
.map((config) => ({
|
|
...config,
|
|
files: ['**/*.html'],
|
|
rules: {},
|
|
})),
|
|
{ ignores: ['**/assets/*.js'] },
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: './tsconfig.*?.json',
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
];
|