mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-23 19:26:35 +00:00

The Arduino IDE's "Auto Format" feature is configured to produce the standard Arduino sketch formatting style by default. The Arduino IDE editor's default settings are compliant with that style. However, the user may adjust the editor settings. In this case, the Arduino IDE automatically adjusts the Auto Format configuration to align with the user's preferences. The formatter configuration is consumed by several other projects in addition to the Arduino IDE. For this reason, the configuration is hosted and maintained in a centralized location, from which it is pulled by all projects that use it. Previously, the adjustment of the Arduino IDE formatter configuration according to the editor settings was integrated into the configuration object itself. This meant that the standardized configuration had to be modified each time it was pulled in to sync from the upstream source. Moving the base formatter configuration object to a dedicated file, separated from the handling and adjustment code allows syncs to be done by simply replacing the existing configuration file with the one automatically generated by the CI system of the repository where the source configuration is hosted.
34 lines
695 B
JSON
34 lines
695 B
JSON
{
|
|
"compilerOptions": {
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"noImplicitAny": true,
|
|
"noEmitOnError": true,
|
|
"noImplicitThis": true,
|
|
"noUnusedLocals": true,
|
|
"noImplicitOverride": true,
|
|
"strictNullChecks": true,
|
|
"experimentalDecorators": true,
|
|
"downlevelIteration": true,
|
|
"emitDecoratorMetadata": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"target": "ES2017",
|
|
"outDir": "lib",
|
|
"lib": [
|
|
"ES2017",
|
|
"dom"
|
|
],
|
|
"jsx": "react",
|
|
"sourceMap": true,
|
|
"skipLibCheck": true
|
|
},
|
|
"include": [
|
|
"src"
|
|
],
|
|
"files": [
|
|
"../node_modules/nsfw/index.d.ts"
|
|
]
|
|
}
|